package com.example.mapstructexample.bean;

import com.example.mapstructexample.enums.FoodType;

import java.math.BigDecimal;
import java.util.Date;

public class Food {

    private String name;

    private int price;

    private BigDecimal weight;

    private Date productionDate;

    private FoodType foodType;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public Date getProductionDate() {
        return productionDate;
    }

    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }


    public FoodType getFoodType() {
        return foodType;
    }

    public void setFoodType(FoodType foodType) {
        this.foodType = foodType;
    }

    @Override
    public String toString() {
        return "Food{" +
                "name='" + name + '\'' +
                ", price=" + price +
                ", weight=" + weight +
                ", productionDate=" + productionDate +
                ", foodType=" + foodType +
                '}';
    }
}
